home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1673 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  4.0 KB  |  106 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 40 && _root.range == true)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "Hey, that\'s a great idea.  I\'ll have a girlfriend in no time...  in JAIL!  ARE YOU NUTS?";
  8.       }
  9.       else if(_root.micon._currentframe == 41 && _root.range == true)
  10.       {
  11.          _root.next_dis1 = 2;
  12.          _root.next_txt1 = "I don\'t think I want to make Harold cry.";
  13.       }
  14.       if(_root.micon._currentframe == 1 && _root.range == true)
  15.       {
  16.          _root.next_dis1 = 2;
  17.          _root.next_txt1 = "I think it\'d be best if I don\'t do that.";
  18.       }
  19.       if(_root.micon._currentframe == 35 && _root.range == true && _root.talk10 == 1 && _root.even17 == 0)
  20.       {
  21.          _root.next_dis1 = 11;
  22.          _root.next_txt1 = "I hope you\'re feeling lucky.";
  23.          _root.di1 = 380;
  24.       }
  25.       if(_root.micon._currentframe == 50 && _root.range == true)
  26.       {
  27.          _root.fade.gotoAndPlay(1);
  28.          stopAllSounds();
  29.          _root.micon.gotoAndStop(1);
  30.          _root.gotoAndStop(54);
  31.       }
  32.       if(_root.micon._currentframe == 2)
  33.       {
  34.          _root.next_dis1 = 2;
  35.          _root.next_txt1 = "Seems as though Harold is taking a smoke break.  Just incase you\'re wondering, he\'s not a very pleasant person.";
  36.       }
  37.       if(_root.micon._currentframe == 4 && _root.txt_number <= 1 && _root.range == true)
  38.       {
  39.          if(_root.talk10 == 0)
  40.          {
  41.             _root.talk10 = 1;
  42.             _root.txt_number = 4;
  43.             _root.next_dis4 = 11;
  44.             _root.next_txt4 = "What do you want?";
  45.             _root.di4 = 370;
  46.             _root.next_txt3 = "I noticed you were smoking.  You wouldn\'t happen to have a lighter on you by any chance?";
  47.             _root.next_dis3 = 2;
  48.             _root.di3 = 371;
  49.             _root.next_txt2 = "HA...  Next ya\'ll be asking me for a cig too.";
  50.             _root.next_dis2 = 11;
  51.             _root.di2 = 372;
  52.             _root.next_txt1 = "I\'ll tell ya what.  Find a Frog and challenge me at X-treme Frog Hopping and I\'ll give ya my lighter.";
  53.             _root.next_dis1 = 11;
  54.             _root.di1 = 373;
  55.          }
  56.          else if(_root.talk10 == 1)
  57.          {
  58.             _root.txt_number = 1;
  59.             if(_root.even17 == 1)
  60.             {
  61.                _root.talk10 = 2;
  62.                _root.txt_number = 4;
  63.                _root.next_dis4 = 11;
  64.                _root.next_txt4 = "What do you want?";
  65.                _root.di4 = 370;
  66.                _root.next_dis3 = 2;
  67.                _root.next_txt3 = "I was wondering if you could help me find a date to the dance.";
  68.                _root.di3 = 374;
  69.                _root.next_dis2 = 11;
  70.                _root.next_txt2 = "Haha, the day I help you is the day I see a pig fly!";
  71.                _root.di2 = 375;
  72.                _root.next_dis1 = 2;
  73.                _root.next_txt1 = "Pig fly... I\'ll see what I can do.";
  74.                _root.di1 = 376;
  75.             }
  76.             else
  77.             {
  78.                _root.next_dis1 = 11;
  79.                _root.next_txt1 = "Don\'t bother me unless you\'re up for the challenge.";
  80.                _root.di1 = 377;
  81.             }
  82.          }
  83.          else if(_root.talk10 == 2)
  84.          {
  85.             _root.txt_number = 2;
  86.             _root.next_dis2 = 2;
  87.             _root.next_txt2 = "Could you please help out?";
  88.             _root.di2 = 378;
  89.             _root.next_dis1 = 11;
  90.             _root.next_txt1 = "Like I said kid, it aint gonna happen til I see a pig fly! Hahahaha";
  91.             _root.di1 = 379;
  92.          }
  93.          else if(_root.talk10 == 3)
  94.          {
  95.             _root.txt_number = 2;
  96.             _root.next_dis2 = 2;
  97.             _root.next_txt2 = "Hey Harold.";
  98.             _root.di2 = 381;
  99.             _root.next_dis1 = 11;
  100.             _root.di1 = 391;
  101.             _root.next_txt1 = "I\'ve already given you that 7382 code. Now leave me alone!";
  102.          }
  103.       }
  104.    }
  105. }
  106.